using System;
using System.Collections.Generic;

namespace CMS.Core.Domain
{
    /// <summary>
    /// ChuyenTiep object for NHibernate mapped table ChuyenTiep.
    /// </summary>
    [Serializable]
    public class ChuyenTiep : DomainObject<System.String>
    {


        private System.String _MaDonThu;
        private System.DateTime _NgayChuyen;
        private System.String _MaNguoiChuyen;
        private System.String _MaNguoiNhan;
        private System.String _YKienLDVP;
        private System.String _YKienLDUBND;
        private DonThu _MaDonThuLookup;
        private NguoiSuDung _MaNguoiChuyenLookup;

        public ChuyenTiep()
        {
            base.id = Guid.NewGuid().ToString().ToUpper();
        }

        public ChuyenTiep(System.String id)
        {
            base.ID = id;
        }

         public virtual System.String MaDonThu {
             get { return _MaDonThu; }
             set { _MaDonThu = value;}
         }

         public virtual System.DateTime NgayChuyen {
             get { return _NgayChuyen; }
             set { _NgayChuyen = value;}
         }

         public virtual System.String MaNguoiChuyen {
             get { return _MaNguoiChuyen; }
             set { _MaNguoiChuyen = value;}
         }

         public virtual System.String MaNguoiNhan {
             get { return _MaNguoiNhan; }
             set { _MaNguoiNhan = value;}
         }

        public virtual System.String YKienLDVP
        {
             get { return _YKienLDVP; }
             set { _YKienLDVP = value; }
         }
        public virtual System.String YKienLDUBND
        {
            get { return _YKienLDUBND; }
            set { _YKienLDUBND = value; }
        }

         public virtual DonThu MaDonThuLookup {
             get { return _MaDonThuLookup; }
             set { _MaDonThuLookup = value;
                 if (_MaDonThuLookup != null)
                     _MaDonThu = _MaDonThuLookup.ID;
             }
         }

         public virtual NguoiSuDung MaNguoiChuyenLookup{
             get { return _MaNguoiChuyenLookup; }
             set { _MaNguoiChuyenLookup = value;
             if (_MaNguoiChuyenLookup != null)
                 _MaNguoiChuyen = _MaNguoiChuyenLookup.ID;
             }

         }


        public override int GetHashCode()
        {
            return ID.GetHashCode();
        }

     }
}
